package domain.entities;


import domain.annotations.TableName;

import java.sql.Timestamp;

/**
 * 操作记录
 *
 * @author wyl
 */
@TableName("T_OperationRecord")
public class OperationRecord {
    public Long id;
    public String operationType;
    public String operationContent;
    public Long operationDate;


    private OperationRecord() {

    }

    public OperationRecord(String operationType, String operationContent) {
        this.operationType = operationType;
        this.operationContent = operationContent;
        this.operationDate = System.currentTimeMillis();
    }

    public Long getId() {
        return id;
    }

    public String getOperationType() {
        return operationType;
    }

    public String getOperationContent() {
        return operationContent;
    }

    public Timestamp getOperationDate() {
        return new Timestamp(operationDate);
    }
}
